<?php

namespace app\index\validate;
use think\Validate;

class LogValidate  extends Validate
{
    protected $rule =   [
        'photo_id' => 'require',
        'menu_id' => 'require',
    ];

    protected $message  =   [
        'photo_id.require' => '图片不能为空',
        'menu_id.require' => '目录不能为空'
    ];

    protected $scene = [
        'add' => ['photo_id']
    ];
}